import request from '@/utils/request'

// 创建用户认证
export function createUserAuth(data) {
  return request({
    url: '/system/user-auth/create',
    method: 'post',
    data: data
  })
}

// 更新用户认证
export function updateUserAuth(data) {
  return request({
    url: '/system/user-auth/update',
    method: 'put',
    data: data
  })
}

// 删除用户认证
export function deleteUserAuth(id) {
  return request({
    url: '/system/user-auth/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户认证
export function getUserAuth(id) {
  return request({
    url: '/system/user-auth/get?id=' + id,
    method: 'get'
  })
}

// 获得用户认证分页
export function getUserAuthPage(params) {
  return request({
    url: '/system/user-auth/page',
    method: 'get',
    params
  })
}
// 导出用户认证 Excel
export function exportUserAuthExcel(params) {
  return request({
    url: '/system/user-auth/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}